package com.zk.nakedfowl.barcodeMachineGrantManager.pojo;

import com.zk.nakedfowl.basicData.pojo.House;
import com.zk.nakedfowl.powerManager.pojo.User;

import javax.persistence.*;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * 实体类
 *
 * @author Administrator
 */
@Entity
@Table(name = "barcode_machine_recovery")
public class MachineRecovery implements Serializable {

    @Id
    private String id;//数据id

    private String barcodeMachineId;//脚标机编号
    private String stallsId;//回收档口编号
    private java.util.Date recoveryDate;//回收时间
    private String recoveryPerson;//回收人员id
    private String sendbackPerson;//送回人员id
    private Double deposit;//押金退回
    private String createBy;//屠宰场id
    private java.util.Date createDate;//创建时间

    @ManyToOne(targetEntity = User.class,fetch = FetchType.LAZY)
    @JoinColumn(name = "recoveryPerson",referencedColumnName = "id")
    private User user;

    @ManyToOne(targetEntity = House.class,fetch = FetchType.LAZY)
    @JoinColumn(name = "createBy",referencedColumnName = "id")
    private House house;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBarcodeMachineId() {
        return barcodeMachineId;
    }

    public void setBarcodeMachineId(String barcodeMachineId) {
        this.barcodeMachineId = barcodeMachineId;
    }

    public String getStallsId() {
        return stallsId;
    }

    public void setStallsId(String stallsId) {
        this.stallsId = stallsId;
    }

    public java.util.Date getRecoveryDate() {
        return recoveryDate;
    }

    public void setRecoveryDate(java.util.Date recoveryDate) {
        this.recoveryDate = recoveryDate;
    }

    public String getRecoveryPerson() {
        return recoveryPerson;
    }

    public void setRecoveryPerson(String recoveryPerson) {
        this.recoveryPerson = recoveryPerson;
    }

    public String getSendbackPerson() {
        return sendbackPerson;
    }

    public void setSendbackPerson(String sendbackPerson) {
        this.sendbackPerson = sendbackPerson;
    }

    public Double getDeposit() {
        return deposit;
    }

    public void setDeposit(Double deposit) {
        this.deposit = deposit;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public java.util.Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(java.util.Date createDate) {
        this.createDate = createDate;
    }


}
